<?php

$installer = $this;

$installer->startSetup ();

$installer->run("
ALTER TABLE {$this->getTable('sales_flat_order')} ADD COLUMN  payment_refunded decimal(12,4) DEFAULT NULL,
												  ADD COLUMN  base_payment_refunded decimal(12,4) DEFAULT NULL;
ALTER TABLE {$this->getTable('sales_flat_creditmemo')} ADD COLUMN  payment_amount decimal(12,4) DEFAULT NULL,
													 ADD COLUMN  base_payment_amount decimal(12,4) DEFAULT NULL;
");

$installer->endSetup (); 

